<?php

class ItemObject extends GObject
{
	public function __construct($fields)
	{
		parent::__construct();
		
		foreach ($fields as $key => $val)
		{
			switch ($key)
			{
				case "id":
					$this->oId = $val;
					break;
				case "name":
					$this->oName = $val;
					break;
				case "make_points":
					$this->oMakePoints = $val;
					break;
				case "type":
					$this->oType = $val;
					break;
				case "desc":
					$this->oDesc = $val;
					break;
			}
			
		}
	}
	
	public function setId($id) { $this->oId = $id; }
	public function id() { return $this->oId; }
	
	public function setName($name) { $this->oName = $name; }
	public function name() { return $this->oName; }
	
	public function setMakePoints($makePoints) { $this->oMakePoints = $makePoints; }
	public function makePoints() { return $this->oMakePoints; }
	
	public function setType($type) { $this->oType = $type; }
	public function type() { return $this->oType; }
	
	public function setDesc($desc) { $this->oDesc = $desc; }
	public function desc() { return $this->oDesc; }
}

?>